package com.itheima;

import java.util.Scanner;

public class Test4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入:");
        String s = sc.nextLine();
        int Count = 0;
        int numCount = 0;
        char[] chars = s.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            char c = chars[i];
            if(c>='A'&&c<='z'){
                Count++;
            }else if(c>='0'&& c<='9'){
                numCount++;
            }
        }
        System.out.println("字母字符:"+ Count);
        System.out.println("数字字母字符:"+ numCount);
    }
}
